// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** addProductReview POST /api/productReview/add */
export async function addProductReviewUsingPost(
  body: API.ProductReviewAddRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseLong_>('/api/productReview/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** deleteProductReview POST /api/productReview/delete */
export async function deleteProductReviewUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/productReview/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** getProductReviewVOById POST /api/productReview/get/vo */
export async function getProductReviewVoByIdUsingPost(
  body: API.ProductReviewQueryByIdRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseListProductReviewVO_>('/api/productReview/get/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** listProductReviewByPage POST /api/productReview/list/page */
export async function listProductReviewByPageUsingPost(
  body: API.ProductReviewQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageProductReview_>('/api/productReview/list/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** listProductReviewVOByPage POST /api/productReview/list/page/vo */
export async function listProductReviewVoByPageUsingPost(
  body: API.ProductReviewQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageProductReviewVO_>('/api/productReview/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** listMyProductReviewVOByPage POST /api/productReview/my/list/page/vo */
export async function listMyProductReviewVoByPageUsingPost(
  body: API.ProductReviewQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageProductReviewVO_>('/api/productReview/my/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}
